package com.example.hjt_java_web_homework2.config;

import com.example.hjt_java_web_homework2.application.dto.ElectricMeterDTO;
import com.example.hjt_java_web_homework2.application.service.DeviceService;
import com.example.hjt_java_web_homework2.application.service.DeviceServiceImpl;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author Li Chun Hei
 * @date 31/10/2025
 * @description
 */
@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI environmentMonitorOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("环境监控系统API")
                        .description("基于DDD的环境监控系统REST API文档")
                        .version("v1.0.0")
                        .contact(new Contact()
                                .name("环境监控团队")
                                .email("support@environment.com")));
    }
}
